package util;

import java.util.ArrayList;

public class MethodList {
	
	public ArrayList<MethodNode> methods=new ArrayList<MethodNode>();

	public boolean existNameAndPara(MethodNode node){
		for(int i=0; i<methods.size(); i++){
			if(methods.get(i).equalParaAndName(node))
				return true;
		}
		return false;
	}
	public boolean exist(MethodNode mn) {
		return methods.contains(mn);
	}
	public void insert(MethodNode methodNode) {
		assert !methods.contains(methodNode);
		methods.add(methodNode);
	}
}
